package com.xebest.web.service;

import com.xebest.web.form.XeVenInquirySheetForm;
import com.xebest.web.model.XeVenInquirySheetEntity;
import com.xebest.web.view.ErpUserInfo;
import com.xebest.web.view.XeVenInquirySheetView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *询价单
 * @author: wangyp
 * @createTime: 2017/6/14 17:11
 * @history:
 * @version: v1.0
 */
public interface XeVenInquirysheetService {

        /**
     	  * 询价单List信息
     	  * @author: Wangyp 
     	  * @createTime: 2017/6/16 11:33
     	  * @history:  
     	  * @param :venInquirySheetForm
     	  * @return: list
     	  */
    List<XeVenInquirySheetView> queryXeVenInquirySheetList(XeVenInquirySheetForm venInquirySheetForm);

	/**
	 *修改询价单信息
	 *@Auther wangyp
	 *@@createTime:  2017/6/14 16:55
	 *@return: record
	 */
	int updateByPrimary(XeVenInquirySheetForm record);

	/**
	 * 根据询价单号  批量修改询价单状态
	 * @author: Wangyp
	 * @createTime: 2017/8/28 11:09
	 * @param :
	 * @return:
	 */
	int batchUpdateSheet(XeVenInquirySheetForm xeVenInquirySheetForm) throws Exception;

	/**
	 * 询价单成交
	 * @author: Wangyp
	 * @createTime: 2017/8/22 10:54
	 * @param :
	 * @return:
	 */
	int updateSheetDeal(XeVenInquirySheetForm form ,ErpUserInfo userInfo) throws Exception;

   /**
	  * 询价单驳回
	  * @author: Wangyp
	  * @createTime: 2017/8/22 11:06
	  * @param :
	  * @return:
	  */
	int updateSheetCancel(XeVenInquirySheetForm form ,ErpUserInfo userInfo)throws Exception;
		/**
         * 单个插入询价单  用于询价单同步接口使用
         * @author: 李贝贝
         * @createTime: 2017年6月26日 上午11:09:07
         * @history:
         * @param entity
         * @return int
         */
    int insertInquirySheet(XeVenInquirySheetEntity entity) throws Exception;

	/**
	 * 根据询价单号查询询价单信息
	 * @author: Wangyp
	 * @createTime: 2017/8/18 10:46
	 * @param :
	 * @return:
	 */
	XeVenInquirySheetView queryXeVenInquiryByCode(XeVenInquirySheetEntity entity);

    /**
     * 批量插入询价单  用于询价单同步接口使用
     * @author: Wangyp
     * @createTime: 2017/8/22 16:01
     * @param :
     * @return:
     */
    int batchInsertInquirySheet( List<XeVenInquirySheetEntity> entityList)throws Exception;

	/**
	  * 批量修改询价单
	  * @author: Wangyp
	  * @createTime: 2017/9/1 16:08
	  * @param :
	  * @return:
	  */
	int batchUpdateInquiry( List<XeVenInquirySheetEntity> entityList)throws Exception;

	XeVenInquirySheetView listXeVenInquiryByCode(String inquirysheetCode);

}
